package com.koron.tool.util;

import java.util.Random;

public class Randt {

    /**
     * 生成唯一16进制RFID
     * @return
     */
    public static String getRandt(){
        long ti=System.currentTimeMillis();
        int re=Math.abs(new Random().nextInt());

        int per=new Random().nextInt(10);
        String pp=per+"001010200200";
        long cu=Long.parseLong(pp);

        String value =cu+ti+re+"";

        String pre=Integer.toHexString(new Random().nextInt(16));

        String randt = pre+Long.toHexString(Long.parseLong(value)).toUpperCase();

        return "E28068940000"+randt;
    }
}
